/**
 * Created by Administrator on 2016/9/6.
 */
define(['jquery'],function(){
    $(function(){
        $("#mui-mbar-bot").on('click',function(){
            var start=document.body.scrollTop;
            var end=0;
            var change=end-start;
            var t=0;
            var maxT=30;
            var t1=7;

            var timer=setInterval(function(){
                t++;
                if(t>=maxT){
                    clearInterval(timer)
                }
                document.body.scrollTop=start+change/maxT*t;
            },t1)
        })
    })
});
